﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using Model.WWW_User.Mail;
using BLL.WWW_User.Teach;
using System.Collections;
using Model.WWW_User.Teach;
using Model.WWW_User.User;



namespace BLF.WWW_User.Teach
{
    public partial class Teach
    {
        #region T vincent
        /// <summary>
        /// 得到跟老师语言相关的信息
        /// </summary>
        /// <param name="memberno">会员号</param>
        /// <returns>TeachModel</returns>
        static public TeachModel GetFoundCourse(string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetFoundCourse(memberno);
        }
        /// <summary>
        /// 添加课程
        /// </summary>
        /// <param name="cm">课程模型</param>
        /// <param name="tags">tag 按空格分割</param>
        /// <returns>生成的cid</returns>
        static public long AddCourse(CoursesModel cm, string tags)
        {
            TeachSystem ts = new TeachSystem();
            return ts.AddCourse(cm, tags);
        }
        /// <summary>
        /// 得到单个course
        /// </summary>
        /// <param name="memberno">会员号</param>
        /// <param name="cid">课程ID</param>
        /// <returns>ArrayList 0 CoursesModel,1 talist,2 TeachModel</returns>
        static public ArrayList GetACourse(string memberno, long cid)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetACourse(memberno, cid);
        }
        /// <summary>
        /// 修改课程
        /// </summary>
        /// <param name="cm">课程模型</param>
        /// <param name="tags">tag 按空格分割</param>
        /// <returns>int -1 服务器忙，1成功，0更新失败</returns>
        static public int UpdateCourse(CoursesModel cm, string tags)
        {
            TeachSystem ts = new TeachSystem();
            return ts.UpdateCourse(cm, tags);
        }
        /// <summary>
        /// 按分页要求得到我正在上的和将要上的sessions
        /// </summary>
        /// <param name="memberno">会员号</param>
        /// <param name="pageIndex">页</param>
        /// <param name="pageSize">大小</param>
        /// <returns>ArrayList 0 list SessionsModel 、1数量</returns>
        static public ArrayList GetMyLuSessions(string memberno, int pageIndex, int pageSize)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetMyLuSessions(memberno, pageIndex, pageSize);
        }
        /// <summary>
        /// 按分页要求得到交易完成的sessions
        /// </summary>
        /// <param name="memberno">会员号</param>
        /// <param name="pageIndex">页</param>
        /// <param name="pageSize">大小</param>
        /// <returns>ArrayList 0 list SessionsModel 、1数量、2我的时区</returns>
        static public ArrayList GetMyUpSessions(string memberno, int pageIndex, int pageSize)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetMyUpSessions(memberno, pageIndex, pageSize);
        }
        /// <summary>
        /// 按分页要求得到过时的sessions
        /// </summary>
        /// <param name="memberno">会员号</param>
        /// <param name="pageIndex">页</param>
        /// <param name="pageSize">大小</param>
        /// <returns>ArrayList 0 list SessionsModel 、1数量</returns>
        static public ArrayList GetMyPsSessions(string memberno, int pageIndex, int pageSize)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetMyPsSessions(memberno, pageIndex, pageSize);
        }
        /// <summary>
        /// 添加Lesson
        /// </summary>
        /// <param name="lm">LessonModel</param>
        /// <param name="memberno">会员号</param>
        /// <returns>long Lesson id</returns>
        static public long AddLesson(LessonModel lm, string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.AddLesson(lm, memberno);
        }
        /// <summary>
        /// 得到编辑课件
        /// </summary>
        /// <param name="lid">课件id</param>
        /// <param name="cid">课程id</param>
        /// <param name="memberno">会员号</param>
        /// <returns>LessonModel</returns>
        static public LessonModel GetALesson(long lid, long cid, string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetALesson(lid, cid, memberno);
        }
        /// <summary>
        /// 判断是否有权限创建Lesson
        /// </summary>
        /// <param name="cid">Courses id</param>
        /// <param name="memberno">会员号</param>
        /// <returns>bool true有权限</returns>
        static public bool ValiCLesson(string cid, string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.ValiCLesson(cid, memberno);
        }
        /// <summary>
        /// 更改myLesson
        /// </summary>
        /// <param name="memberno">会员号</param>
        /// <param name="lm">Lessonmodel</param>
        /// <returns>bool</returns>
        static public bool UpdateLesson(string memberno, LessonModel lm)
        {
            TeachSystem ts = new TeachSystem();
            return ts.UpdateLesson(memberno, lm);
        }
        /// <summary>
        /// 得到我的Courses列表
        /// </summary>
        /// <param name="memberno">我的会员号</param>
        /// <param name="pageIndex">页</param>
        /// <param name="pageSize">大小</param>
        /// <param name="sort">排序1.创建时间，2。订阅成功的次数，3浏览次数</param>
        /// <returns>ArrayList 0 courses 列表 1 为courses数量</returns>
        static public ArrayList GetMyCourses(string memberno, int pageIndex, int pageSize, int sort)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetMyCourses(memberno, pageIndex, pageSize, sort);
        }
        /// <summary>
        /// 0 couresmodel 其中的Sessions和Views都为lesson、
        /// 1 其中的0为是否验证为老师,1是否禁用
        /// 2 tag 列表
        /// 3 该会员的总sessions数
        /// 4该coures的lesson
        /// 5该会员的Coures
        /// 6相关的lesson
        /// 7lesson模型
        /// 8其中0为下一个，1为上一个（默认为0就是没有上一个或下一个）
        /// 9时间浏览人时区
        /// </summary>
        /// <param name="memberno">浏览人的会员号</param>
        /// <param name="lid">lesson id</param>
        /// <param name="sessionID">SessionID</param>
        /// <param name="iP">浏览IP</param>
        /// <param name="userAgent">浏览器类型</param>
        /// <param name="referer">参考页面</param>
        /// <returns>ArrayList </returns>
        static public ArrayList GetALessonInfo(string memberno, string lid, string sessionID, string iP, string userAgent, string referer)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetALessonInfo(memberno, lid, sessionID, iP, userAgent, referer);
        }
        /// <summary>
        /// 0 couresmodel 其中的Sessions和Views都为lesson、
        /// 1 该会员的总sessions数
        /// 2 lesson模型
        /// 3 浏览人时区
        /// 4sessions 列表
        /// 5 该sessions 
        /// </summary>
        /// <param name="memberno">浏览人的会员号</param>
        /// <param name="lid">lesson id</param>
        /// <param name="pageIndex">页</param>
        /// <param name="pageSize">大小</param>
        /// <returns>ArrayList</returns>
        static public ArrayList GetALessonSessions(string memberno, string lid, int pageIndex, int pageSize)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetALessonSessions(memberno, lid, pageIndex, pageSize);
        }
        /// <summary>
        /// 0教师模型
        /// 1教师的聊天工具 list string
        /// 2学生的信息
        /// 3list lessonmodel
        /// </summary>
        /// <param name="memberno">学生会员号</param>
        /// <param name="tmemberno">老师会员号</param>
        /// <param name="cid">课程id</param>
        /// <returns>ArrayList</returns>
        static public ArrayList GetFoundSessionsInfo(string memberno, string tmemberno, long cid)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetFoundSessionsInfo(memberno, tmemberno, cid);
        }
        /// <summary>
        /// 0教师模型
        /// 1教师的聊天工具 list string
        /// 2学生的信息
        /// </summary>
        /// <param name="memberno">学生会员号</param>
        /// <param name="tmemberno">老师会员号</param>
        /// <returns>ArrayList</returns>
        static public ArrayList GetFoundSessionsInfo0(string memberno, string tmemberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetFoundSessionsInfo0(memberno, tmemberno);
        }
        /// <summary>
        /// 添加sessions
        /// 0 sid
        /// 1 LChapter
        /// 2 教师的MemberCrtNo
        /// 3 教师的timezone
        /// 4 CTitle
        /// 5 LTitle
        /// </summary>
        /// <param name="sm">SessionsModel</param>
        /// <returns>ArrayList</returns>
        static public ArrayList AddSessions(SessionsModel sm, string SIM, string Message)
        {
            TeachSystem ts = new TeachSystem();
            return ts.AddSessions(sm,  SIM, Message);
        }
        /// <summary>
        /// 得到老师将要确定sessions页面
        /// 0 SessionsModel
        /// 1 聊天工具帐号\n分割0为学生1为老师的
        /// 2 老师的时区
        /// 只有当权限足够才能取的了数据
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">老师会员号</param>
        /// <returns>ArrayList</returns>
        static public ArrayList GetSessionsState5(long sid, string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetSessionsState5(sid, memberno);
        }
        /// <summary>
        /// 老师确定session变为5
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">老师会员号</param>
        /// <param name="Message">消息</param>
        /// <returns>bool</returns>
        static public bool SetSesState5(long sid, string memberno, string Message)
        {
            TeachSystem ts = new TeachSystem();
            return ts.SetSesState5(sid, memberno, Message);
        }
        /// <summary>
        /// 老师更改session状态为3
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">会员号</param>
        /// <param name="StartDate">开始日期</param>
        /// <param name="StartTime">结束时间</param>
        /// <param name="Price">价格</param>
        /// <param name="Message">消息</param>
        /// <returns>bool</returns>
       static  public bool SetSesState3(long sid, string memberno, string StartDate, string StartTime, decimal Price, string Message)
        {
            TeachSystem ts = new TeachSystem();
            return ts.SetSesState3(sid, memberno, StartDate, StartTime, Price, Message);

        }
        /// <summary>
        /// 得到学生将要确定sessions页面开始状态必须为3 或0
        /// 0 SessionsModel
        /// 1 聊天工具帐号\n分割0为学生1为老师的
        /// 2教师模型
        /// 3教师的聊天工具
        /// 4学生的信息
        /// 5list lessonmodel
        /// 只有当权限足够才能取的了数据
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">学生会员号</param>
        /// <returns>ArrayList</returns>
        static public ArrayList GetSessionsState3(long sid, string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetSessionsState3(sid, memberno);
        }
        /// <summary>
        /// 学生确定session变为0
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">学生会员号</param>
        /// <param name="Message">消息</param>
        /// <returns>bool</returns>
        static public bool SetSesState0(SessionsModel sm, string SIM, string Message)
        {
            TeachSystem ts = new TeachSystem();
            return ts.SetSesState0(sm, SIM, Message);
        }
        /// <summary>
        /// 得到学生将要确定sessions页面开始状态必须为B
        /// 0 SessionsModel
        /// 1 from 国家
        /// 只有当权限足够才能取的了数据
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">老师会员号</param>
        /// <returns>ArrayList</returns>
        static public ArrayList GetSessionsStateB(long sid, string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetSessionsStateB(sid, memberno);
        }
        /// <summary>
        /// 老师确定session变为B
        /// 0 为是否成功
        /// 1 学生email
        /// 2 学生的时区
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">学生会员号</param>
        /// <param name="Message">消息</param>
        /// <returns>ArrayList</returns>
        static public ArrayList SetSesStateB(long sid, string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.SetSesStateB(sid, memberno);
        }
        /// <summary>
        /// 老师确定session变为B
        /// 0 为是否成功
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">老师会员号</param>
        /// <param name="Message">解释</param>
        /// <returns>ArrayList</returns>
        static public ArrayList SetSesState8(long sid, string memberno, string Message)
        {
            TeachSystem ts = new TeachSystem();
            return ts.SetSesState8(sid, memberno, Message);
        }
        /// <summary>
        /// 得到学生将要确定sessions页面开始状态必须为8
        /// 0 SessionsModel
        /// 1 from 国家
        /// 2 sessioncount
        /// 3 message
        /// 4 StarRate
        /// 只有当权限足够才能取的了数据
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">学生会员号</param>
        /// <returns>ArrayList</returns>
        static public ArrayList GetSessionsState8(long sid, string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetSessionsState8(sid, memberno);
        }
        /// <summary>
        /// 学生确定session变为9或A
        /// 0 为是否成功
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">老师会员号</param>
        /// <param name="State">状态</param>
        /// <returns>ArrayList</returns>
        static public ArrayList SetSesState9A(long sid, string memberno, string State)
        {
            TeachSystem ts = new TeachSystem();
            return ts.SetSesState9A(sid, memberno, State);
        }
        /// <summary>
        /// 得到学生将要确定sessions页面开始状态必须为B
        /// 0 SessionsModel
        /// 1 from 国家
        /// 2 sessioncount
        /// 3 StarRate
        /// 只有当权限足够才能取的了数据
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">学生会员号</param>
        /// <returns>ArrayList</returns>
        static public ArrayList GetSessionsStateF(long sid, string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetSessionsStateF(sid, memberno);
        }
        /// <summary>
        /// 学生确定session变为F
        /// 0 为是否成功
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">学生会员号</param>
        /// <param name="Helpful">活跃评级</param>
        /// <param name="Knowledgeable">知识评级</param>
        /// <param name="Professional">专业评级</param>
        /// <param name="SToTDesc">学生对老师的评价</param>
        /// <returns>ArrayList</returns>
        static public ArrayList SetSesStateF(long sid, string memberno, short Professional, short Knowledgeable, short Helpful, string SToTDesc)
        {
            TeachSystem ts = new TeachSystem();
            return ts.SetSesStateF(sid, memberno, Professional, Knowledgeable, Helpful, SToTDesc);
        }
        /// <summary>
        /// 学生确定session变为C
        /// 0 为是否成功
        /// 1 老师的Email
        /// 2 老师的时区
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">学生会员号</param>
        /// <param name="Message">解释</param>
        /// <returns>ArrayList</returns>
        static public ArrayList SetSesStateC(long sid, string memberno, string Message)
        {
            TeachSystem ts = new TeachSystem();
            return ts.SetSesStateC(sid, memberno, Message);
        }
        /// <summary>
        /// 得到老师将要确定sessions页面开始状态必须为C
        /// 0 SessionsModel
        /// 1 from 国家
        /// 2 sessioncount
        /// 3 message 投诉原因
        /// 只有当权限足够才能取的了数据
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">老师会员号</param>
        /// <returns>ArrayList</returns>
        static public ArrayList GetSessionsStateC(long sid, string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetSessionsStateC(sid, memberno);
        }
        /// <summary>
        /// 老师确定session变为H
        /// 0 为是否成功
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">老师会员号</param>
        /// <param name="Message">解释</param>
        /// <returns>ArrayList</returns>
        static public ArrayList SetSesStateH(long sid, string memberno, string Message)
        {
            TeachSystem ts = new TeachSystem();
            return ts.SetSesStateH(sid, memberno, Message);
        }
        /// <summary>
        /// 得到老师将要确定sessions页面开始状态必须为F
        /// 0 SessionsModel
        /// 1 from 国家
        /// 2 sessioncount
        /// 只有当权限足够才能取的了数据
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">老师会员号</param>
        /// <returns>ArrayList</returns>
        static public ArrayList GetSessionsStateG(long sid, string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetSessionsStateG(sid, memberno);
        }
        /// <summary>
        /// 老师确定session变为G
        /// 0 为是否成功
        /// </summary>
        /// <param name="sid">sid</param>
        /// <param name="memberno">老师会员号</param>
        /// <param name="Message">评价</param>
        /// <returns>ArrayList</returns>
        static public ArrayList SetSesStateG(long sid, string memberno, string Message)
        {
            TeachSystem ts = new TeachSystem();
            return ts.SetSesStateG(sid, memberno, Message);
        }
        /// <summary>
        /// ArrayList
        /// 0 lssm List SessionsModel
        /// 1 sessions 数量
        /// 2 管理员name
        /// </summary>
        /// <param name="memberno">管理员会员号</param>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">页大小</param>
        /// <param name="state">C,D,E,H</param>
        /// <returns></returns>
        static public ArrayList GetAllSesStateC(string memberno, int pageIndex, int pageSize, string state)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetAllSesStateC(memberno, pageIndex, pageSize, state);
        }
        /// <summary>
        /// 得所有得sessions
        /// 0 我要操作得sessions
        /// 1 他们要操作的sessions
        /// 2 我的时区、
        /// 3 将要进行和真在上的课数量
        /// 4 成功交易的数量
        /// 5 过时的数量
        /// </summary>
        /// <param name="memberno">会员号</param>
        /// <returns>ArrayList</returns>
        static public ArrayList GetMyHdSessions(string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetMyHdSessions(memberno);
        }
        /// <summary>
        /// 得到投诉和辩解内容
        /// 0 学生投诉的内容
        /// 1 为老师辩解的理由
        /// </summary>
        /// <param name="sid">sid</param>
        /// <returns>ArrayList</returns>
        static public ArrayList GetDispute(long sid)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetDispute(sid);
        }
        /// <summary>
        /// 添加老师的URL证据
        /// </summary>
        /// <param name="memberno">管理员号</param>
        /// <param name="TeachURL">老师提供的URL</param>
        /// <param name="sid">相应的sid</param>
        /// <returns>bool</returns>
        static public bool AddTeachURL(string memberno, string TeachURL, long sid)
        {
            TeachSystem ts = new TeachSystem();
            return ts.AddTeachURL(memberno, TeachURL, sid);
        }
        /// <summary>
        /// 得到会员的空闲时间列表
        /// </summary>
        /// <param name="memberno">会员号</param>
        /// <returns>List（UserTimeAvailability）</returns>
        static public List<UserTimeAvailability> GetUserTime(string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetUserTime(memberno);
        }
        /// <summary>
        /// 1 为条件都满足直接重定向添加session页面
        /// 2 为余额不足
        /// 3 为还没账户
        /// 4 出错或传的值错误
        /// </summary>
        /// <param name="memberno">老师的会员号</param>
        /// <param name="mymemberno">登陆人的会员号</param>
        /// <returns>int</returns>
        static public int GetPayment(string memberno, string mymemberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetPayment(memberno, mymemberno);
        }
        /// <summary>
        /// 通过sid得到pid
        /// </summary>
        /// <param name="sid">sid</param>
        /// <returns>string</returns>
        static public string GetPayId(long sid)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetPayId(sid);
        }
        /// <summary>
        /// 得到申请老师的步骤并且修改注册时候的操作阶段为3
        /// </summary>
        /// <param name="memberno">会员号</param>
        /// <returns>string-1为服务器出错，为0就是还没申请，其余看步骤</returns>
        static public string GetApTeachUpSt(string memberno)
        {
            TeachSystem ts = new TeachSystem();
            return ts.GetApTeachUpSt(memberno);
        }
        #endregion
        /// <summary>
        /// 获取请求session时的信息（请求课程）
        /// 0：string[] List 用户信息0学生“昵称,头像,时区” 1教师“昵称,头像,价格(格式后的)”
        /// 1：string[] List 用户通讯工具0学生的“1－6” 1教师的“1－6”
        /// 2：LessonModel List 当前course下的所有lesson列表
        /// 3：CoursesModel 当前course信息
        /// </summary>
        /// <param name="tNO">教师编号</param>
        /// <param name="sNO">学生编号</param>
        /// <param name="cid">course ID</param>
        /// <returns>ArrayList</returns>
        public static ArrayList GetAddSessionInfo(string tNO, string sNO, long cid)
        {
            return new TeachSystem().GetAddSessionInfo(tNO, sNO, cid);
        }
        /// <summary>
        /// 获取请求session时的信息（请求辅导）
        /// 0：string[] List 用户信息0学生“昵称,头像,时区” 1教师“昵称,头像,价格(格式后的)”
        /// 1：string[] List 用户通讯工具帐号0学生的“1－6” 1教师的“1－6”
        /// 2：LessonModel List 当前course下的所有lesson列表        
        /// </summary>
        /// <param name="tNO">教师编号</param>
        /// <param name="sNO">学生编号</param>
        /// <returns>ArrayList</returns>
        public static ArrayList GetAddSessionInfo(string tNO, string sNO)
        {
            return new TeachSystem().GetAddSessionInfo(tNO, sNO);
        }
        /// <summary>
        /// 获取某个会员的course列表信息（请求课程）
        /// 0：CoursesModel list
        /// 1：LessonModel lesson第一个course下的lesson列表
        /// </summary>
        /// <param name="tNO">教师编号</param>
        /// <returns>CoursesModel 列表</returns>
        public static ArrayList GetUserCourses(string tNO)
        {
            return new TeachSystem().GetUserCourses(tNO);
        }
        /// <summary>
        /// 获取某个course的lesson列表信息（请求课程）        
        /// </summary>
        /// <param name="tNO">教师编号</param>
        /// <param name="cid">course id</param>
        /// <returns>lesson列表</returns>
        public static List<LessonModel> GetACourseLessons(string tNO, long cid)
        {
            return new TeachSystem().GetACourseLessons(tNO, cid);
        }
        /// <summary>
        /// 获取教师语言信息（请求辅导）
        /// </summary>
        /// <param name="tNO">教师编号</param>
        /// <returns>TeachModel</returns>
        public static TeachModel GetRequestTutorInfo(string tNO)
        {
            return new TeachSystem().GetRequestTutorInfo(tNO);
        }
        /// <summary>
        /// 添加session(学生申请)
        /// 0：string 0(直接返回，表示有未结束的相同session) 1(才有后面数据)
        /// 1：SessionsModel(发邮件所需内容)
        /// 2：老师email地址
        /// 3：老师时区
        /// </summary>
        /// <param name="sm">SessionsModel</param>
        /// <param name="SIM">教学工具</param>
        /// <param name="Message">消息</param>
        /// <returns>ArrayList</returns>
        public static ArrayList AddSession(SessionsModel sm, string sIM, string msg)
        {
            return new TeachSystem().AddSession(sm, sIM, msg);
        }
    }
}
     